shift elements in list python

47

shift elements in list python -

#Shifts all elements one to the right and moves end value to the start

li=li[-1:]+li[:-1]

Comments

Submit
0 Comments